import argparse
import asyncio

from logger import log
from settings import settings
from webcam import socket_logic

if __name__ == '__main__':
    parser = argparse.ArgumentParser(description='code code code')
    parser.add_argument("--code", type=str, default="lipeng_test")
    args = parser.parse_args()
    log.info(f"code:{args.code}")
    # 初始化配置
    settings.init(args.code)
    # 开启视频预览服务
    asyncio.run(socket_logic())
